package com.yzh.animal;

/**
 * @author 于振晗
 * @title: Cat
 * @description: TODO 猫类
 * @date 2020年08月25日
 * @path com.yzh.animal
 */
public class Dog extends Animal {
    private String nickName;//昵称



    public Dog(String color, int age, String nickName) {
        super(color, age);
        this.nickName = nickName;
    }

    public String getEyesight() {
        return nickName;
    }

    public void setEyesight(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public void introduce() {
        System.out.println("颜色："+super.getColor()+"\t年龄："+super.getAge()+"\t昵称："+nickName);
    }
}
